From: Carlos Soriano Date: Tue, 17 Jun 2014 22:04:34 +0000 (+0200) Subject: IconGrid: calculate icon size only once X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2409 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=75c2a723d9accc5486d4d2a7e0d9db11c6dee336;p=gnome-shell.git IconGrid: calculate icon size only once --- diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index 122fdc6d3..9cf9f2f78 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -530,8 +530,8 @@ const IconGrid = new Lang.Class({ // Note that this is ICON_SIZE as used by BaseIcon, not elsewhere in IconGrid; it's a bit messed up _updateChildrenScale: function(scale) { + let newIconSize = Math.floor(ICON_SIZE * scale); for (let i in this._items) { - let newIconSize = Math.floor(ICON_SIZE * scale); this._items[i].icon.setIconSize(newIconSize); } }